import request from '@/utils/request'

// 查询积分记录列表
export function listGradeRecord(query) {
  return request({
    url: '/applet/gradeRecord/list',
    method: 'get',
    params: query
  })
}

// 查询积分记录详细
export function getGradeRecord(id) {
  return request({
    url: '/applet/gradeRecord/' + id,
    method: 'get'
  })
}

// 新增积分记录
export function addGradeRecord(data) {
  return request({
    url: '/applet/gradeRecord',
    method: 'post',
    data: data
  })
}

// 修改积分记录
export function updateGradeRecord(data) {
  return request({
    url: '/applet/gradeRecord',
    method: 'put',
    data: data
  })
}

// 删除积分记录
export function delGradeRecord(id) {
  return request({
    url: '/applet/gradeRecord/' + id,
    method: 'delete'
  })
}
